home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Languages / Mops 2.7 / Mops Manual / Part II.srd / Part II.srd.rsrc / PICT_22.png < prev    next >
Portable Network Graphic  |  1996-01-02  |  124KB  |  816x1056  |  8-bit (256 colors)
Labels: book | bulletin board | poster | reckoner | sky | windowpane
OCR: II-18 Mops General Reference earlier, an object has a pointer to its class at the start (it has some other information there as well). To get the object address, which IS the address first ivar, you just use the name of the object without any selector Alternatively if you already have the cfa of the object, use the word >OBJ to con vert it to the object address. So either of the following will work: anOb anObjPtr anObj >obj anObjPtr class as> There's way to force an early bind t0 an object, without having to set up an objPtr. The disadvantage that it's less secure With earlier versions of Mops you say obj addr on stack aMethod theClass with the object's class being used as the "object" to which the method is sent. This syntax was available in Neon, was undocumented !) It was and still is, ...